package com.chaos.system.service.third;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "baiduLbService", url = "api.map.baidu.com")
public interface BaiduLbThirdFeign {
    @GetMapping("/location/ip")
    JSONObject location(
            @RequestParam("ak") String ak,
            @RequestParam("ip") String ip,
            @RequestParam("coor") String coor,
            @RequestParam("sn") String sn
    );
}